<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="renderer" content="webkit|ie-comp|ie-stand">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport"
    content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <title>已发布物料</title>
</head>

<body>
  <div id="app" v-loading.fullscreen.lock="loading">
    <released-material v-if="user!==undefined" class="released-material-div" :has-handle="user!==null"></released-material>
  </div>
</body>

<script src="https://upload.shinehao.com.cn/20181222140744qiniu.min.js"></script>
<script src="../../myJs/importFile.js"></script>
<script>
  importFile([
    "/vueSystem/components/css/promptForm.css",
    "/vueSystem/components/css/imgSearchInput.css",
    "../components/css/relationSupplierForm.css",
    "./css/imgsPreview.css",
    "./css/materialDetail.css",
    "./css/cardMode.css",
    "./css/releasedMaterial.css"
  ], [
    "/vueSystem/i18n/index.js",
    "/vueSystem/js/checkVaildUtil.js",
    "/vueSystem/models/baseModel.js",
    "/vueSystem/components/promptForm.js",
    "/vueSystem/components/svgIcon.js",
    "/vueSystem/components/imgSearchInput.js",
    "/vueSystem/mixins/tablePaginationMixin.js"
  ]);
</script>
<script src="../utils/moduleUtil.js"></script>
<script src="../models/materialModel.js"></script>
<script src="../models/supplierModel.js"></script>
<script src="../models/materialClassifyModel.js"></script>
<script src="../components/relationSupplierForm.js"></script>
<script src="./imgsPreview.js"></script>
<script src="./materialDetail.js"></script>
<script src="./cardMode.js"></script>
<script src="./releasedMaterial.js"></script>

<script>
  var app = new Vue({
    el: "#app",

    data: function () {
      return {
        user: undefined
      };
    },

    created: function () {
      var self = this;
      this.loading = true;
      ajaxRequest('user/getUserName').then(function (user) {
        self.user = user;
        self.loading = false;
      }).catch(function () {
        self.loading = false;
      });
    },

    components: {
      ReleasedMaterial: ReleasedMaterial
    }
  });
</script>
<style>
  .released-material-div {
    padding: 10px 0 5px;
    height: calc(100% - 15px);
  }
</style>

</html>